package com.zhentao.controller;


import com.zhentao.dtos.Result;
import com.zhentao.pojo.Carouselimage;
import com.zhentao.service.CarouselimageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 陌寒    Lenovo
 * @date 2025/2/20上午11:35
 * @description 类描述
 */
//轮播图页面
@RestController
@RequestMapping("/carouselimage")
public class CarouselimageController {
    @Autowired
    private CarouselimageService carouselimageService;

    @RequestMapping("/getCarouselImage")
    public Result getCarouselImage(Carouselimage carouselimage){
        List<Carouselimage> carouselimages = carouselimageService.selectAll(carouselimage);
        return new Result(200,"获取轮播图成功",carouselimages);
    }
}
